package tests.junit;

import junit.framework.TestCase;

import org.junit.Before;
import org.junit.Test;

import communication.SimpleXYMessage;

public class TestCommunication extends TestCase {

	@Before
	public void setUp(){

	}
	
	@Test
	public void testSimpleMessage(){
		SimpleXYMessage normSm = new SimpleXYMessage(350, 500);
		System.out.println(normSm + " " + 350f/800f + " " + 500f/600f);
		assertEquals(350f/800f, normSm.getX());
		assertEquals(500f/600f, normSm.getY());
	}
	
}
